package com.fancy.projecty.mapper;

import com.fancy.projecty.pojo.WaterMenu;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * WaterMenuMapper.xml
 */
public interface WaterMenuMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(WaterMenu record);

	int insertSelective(WaterMenu record);

	WaterMenu selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(WaterMenu record);

	int updateByPrimaryKey(WaterMenu record);

	List<Map> selectMenuByRoleNameList(ArrayList<String> roleList);

	int addMenu(WaterMenu waterMenu);

	List<WaterMenu> selectMenuByUserName(String username);

	int addMenuByParentId(WaterMenu waterMenu);

	int deleteMenuById(int menuId);

	/**
	 * 查询所有的菜单 通过父id
	 *
	 * @param parentId
	 * @return
	 */
	String[] selectAllMenuNameByParentId(int parentId);


	int updateMenuById(WaterMenu waterMenu);

	WaterMenu selectMenuByid(int id);


	List<WaterMenu> selectAll();

	WaterMenu selectMenuById(int id);

	List<WaterMenu> selectMenuByRoleId(int roleId);

	int  deleteRoleMenuByRoleId(int id);


	List<WaterMenu> selectMenuByLoginName(String username);



	List<WaterMenu> selectAllMenu();


}